<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<title>首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<div id="content">
		<section class="content-header">
			<h1>
				<i class="fa fa-trello"></i> <strong>售后服务单办理</strong>
			</h1>
			<ol class="breadcrumb">
				<li><a href="#"><i class="fa fa-home "></i>Home</a></li>
				<li>售后管理</li>
				<li class="active">售后服务单办理</li>
			</ol>
		</section>
		<!-- Main content -->
		<section class="content">
			<div class="row">
				<div class="col-md-12">
					<div class="box box-info">
						<div class="box-header with-border">
							<i class="fa fa-th-list"></i>
							<h4 class="box-title">服务单查询</h4>
						</div>
						<div class="box-body">
							<div class="form-inline">
								<div class="input-group">
									<input type="text" class="form-control" id="keyword"
										placeholder="Search..." /> <span class="input-group-btn">
										<!-- <select class="form-control" id="ticketState"
										name="ticketState">
											<option></option>
											<option value="2">已提交</option>
											<option value="3">已派遣</option>
											<option value="4">跟踪中</option>
											<option value="5">待回访</option>
											<option value="6">已完成</option>
									</select> -->
										<button type="button" name="search" id="search-btn"
											class="btn btn-info searchBtn">查询</button>
										<button type="button" name="cancel" id="cancel-btn"
											class="btn btn-info cancelBtn">撤消</button>
									</span>
								</div>
								<div class="input-group">
								<form action="" method="get">
										<label><input name="isReceived" type="radio" value="" checked="checked"/>全部</label> 
										<label><input name="isReceived" type="radio" value="2"/>已提交 </label> 
										<label><input name="isReceived" type="radio" value="3"/>已派遣</label> 
										<label><input name="isReceived" type="radio" value="4" />跟踪中 </label> 
										<label><input name="isReceived" type="radio" value="5" />待回访</label> 
										<label><input name="isReceived" type="radio" value="6"/>已完成</label> 
								</form>
								</div>
								<div class="btn-group pull-right">
									<button type="button" class="btn btn-info backTicket">退回服务单</button>
									<button type="button" class="btn btn-info perfection">完善服务单</button>
									<button type="button" class="btn btn-info createTicket">生成派遣单</button>
									<button type="button" class="btn btn-info btn-audit-nodes">三包审批查看</button>
									<button type="button" class="btn btn-info detailBtn">查看服务单</button>
								</div>

							</div>
						</div>
						<div class="box box-body" style="width: 100%; overflow-x: scroll;">
							<table id="inHouseTable"
								class="mytable dataTable table-bordered text-center table-striped table-hover"
								cellspacing="0" width="2000px" align="center">
								<thead>
									<tr>
										<th width="2%">序号</th>
										<th width="1%"><input type="checkbox" id="checkAll" /></th>
										<th width="3%">服务单状态</th>
										<th width="2%">管理代码</th>
										<th width="3%">合同号</th>
										<th width="4%">单位名称</th>
										<th width="4%">设备型号</th>
										<th width="3%">售后类型</th>
										<th width="7%">问题描述</th>
										<th width="3%">服务时间</th>
										<!-- <th width="5%">派遣人员</th> -->
										<th width="3%">申请人</th>
										<th width="4%">发起部门</th>
										<th width="3%">创建时间</th>
										<th width="3%">现场联系人</th>
										<th width="3%">联系方式</th>
										<!-- <th width="3%">审批状态</th>
										<th width="5%">提交人</th>
										<th width="5%">服务时间</th>
										<th width="5%">设备编号</th>
										<th width="5%">设备名称</th> -->
									</tr>
								</thead>
								<tbody>

								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
		</section>
		<div class="modal" id="sendOutHouseModal">
			<div class="modal-dialog" role="dialog" style="height: 300px">
				<form id="sendOutHouseForm">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>售后派遣单</strong>
							</h4>
						</div>
						<div class="modal-body">
							<input type="hidden" name="id" id="id" />
							<div class="form-horizontal">
								<div class="form-group">
									<label class="col-sm-2 control-label">开始时间</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="date" name="startTime"
												id="startTime" datatype="*,*1-100" />
										</div>
										<div class="col-md-1">
											<span style="color: #F00; fontsize: 30px">*</span>
										</div>
									</div>
									<label class="col-sm-2 control-label">结束时间</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="form-control" type="date" name="endTime"
												id="endTime" datatype="*,*1-100" />
										</div>
										<div class="col-md-1">
											<span style="color: #F00; fontsize: 30px">*</span>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">人员</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<select class="form-control" id="sender" name="sender"
												datatype="*" style="width: 100%">
												<option></option>
												<option th:each="user:${alluser}" th:value="${user.id}"
													th:text="${user.empLogin.userName}"></option>
											</select>
										</div>
										<div class="col-md-1">
											<span style="color: #F00; fontsize: 30px">*</span>
										</div>
									</div>
									<label class="col-sm-2 control-label"></label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<input class="hide" id="ticketId" name="ticketId" />
										</div>

									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">派遣说明</label>
									<div class="col-sm-10">
										<div class="col-md-11">
											<textarea class="form-control" type="text" name="sendReason"
												id="sendReason" datatype="*1-100" rows="3"></textarea>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default"
								data-dismiss="modal">返回</button>
							<button type="button" class="btn btn-primary saveSendBtn">保存</button>
						</div>
						<div class="box-header with-border">
							<i class="fa fa-th-list"></i>
							<h4 class="box-title">派遣列表</h4>
						</div>
						<table id="sendOutTable" width="90%"
							class="mytable dataTable table-bordered text-center table-striped table-hover"
							cellspacing="0" align="center">
							<thead>
								<tr>
									<th width="10%">序号</th>
									<th width="25%">管理代码</th>
									<th width="25%">派遣人</th>
									<th width="25%">操作</th>
								</tr>
							</thead>
							<tbody>

							</tbody>
						</table>
					</div>
				</form>


			</div>
		</div>

		<!--查看审批弹窗 -->
		<div id="modal-audit-nodes" class="modal fade" tabindex="-1"
			role="dialog">
			<div class="modal-dialog" role="document">
				<div id="modal-audit-nodes-content" class="modal-content"></div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal-dialog -->
		</div>
		<!-- /.modal -->
		<!--查看审批弹窗结束 -->




		<script th:src="@{/afterSaleInHouse/inHouseindex.js}"></script>
	</div>

</body>
</html>

